package com.blog.system.api.feign;

import com.blog.system.api.factory.RemotePictureFallbackFactory;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import static com.blog.common.core.constant.ThirdUrl.PICTURE_URL;

/**
 * <p>
 * 图片服务
 * </p>
 *
 * @author Vivian
 * @date 2023/7/2
 **/
@FeignClient(contextId = "RemotePictureService", name = "picture", url = PICTURE_URL, fallbackFactory = RemotePictureFallbackFactory.class)
public interface RemotePictureService {

    /**
     * 获取壁纸--动漫
     *
     * @return {@link Byte[]}
     */
    @GetMapping("/pc")
    Response getPageCoverByAnime();

    /**
     * 获取壁纸--风景
     *
     * @return {@link Byte[]}
     */
    @GetMapping("/fj")
    Response getPageCoverByLandscape();

}
